how to insert data into multiple tables using asp.net c#

148

how to insert data into multiple tables using asp.net c# -

sqlcmd.CommandText = "INSERT INTO Table1(Name, Address) VALUES(@Name, @Address);" +
"INSERT INTO Table2(Company, Address2) VALUES(@Company, @Address2)";

Comments

Submit
0 Comments